Fix formatting of tables with thead/tfoot but no tbody
authorJD Smith <93749+jdtsmith@users.noreply.github.com>
Sat, 6 Jul 2024 13:22:33 +0000 (09:22 -0400)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 6 Jul 2024 19:10:39 +0000 (21:10 +0200)
commit9625e4af9946436cea6ba3f41f6c384634bcc999
treed439a42cac08960eb60cac3d87ab88c359aed6cb
parent83234cc1dbbe19450d2fc8cc27509ee4b05c4877
Fix formatting of tables with thead/tfoot but no tbody

Correctly handle formatting of tables containing thead and/or tfoot, but
without any tbody, to prevent including thead/tfoot content twice within
the table's derived body.
* lisp/net/shr.el (shr--fix-tbody): Omit 'thead' and 'tfoot' from
implicit body.  (Bug#71685)
* test/lisp/net/shr-resources/table.html:
* test/lisp/net/shr-resources/table.txt: New tests for table rendering.
lisp/net/shr.el
test/lisp/net/shr-resources/table.html [new file with mode: 0644]
test/lisp/net/shr-resources/table.txt [new file with mode: 0644]